<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}
	srand(seed());
    $contentid=time()+mt_rand (0,10240000 );

    
    if(!empty($usergroup)){
        $usergroupdata[0]="所有用户";
        while(list($k,$trow)=each($usergroup)){
           $usergroupdata[$k]=$trow["title"]; 
        }
        
    }else{
        $usergroupdata=array(0=>"所有用户");
    }
    
?>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post"  class="pageForm required-validate"  name="form1" onsubmit="return validateCallback(this, dialogAjaxDone);">
<input type="hidden" name="id" value="<?=$row['id']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="60">
<p><label>接收群组：</label>
<?=select($usergroupdata,$row['groupid'],'groupid')?>

</p>
<p><label>消息标题：</label>
<input name="subject" type="text" size="65"  id="subject" value="<?=$row['subject']?>" class="required" />
</p>
<p><label>内容：</label>

<textarea name="content" rows="6" cols="48" ><?=$row["content"]?></textarea>
</p>
</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
